﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HashCodeAndEquals
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Product p1 = new Product { Id = 1, Name = "K10C150", Price = 100M, category = "衬衫"};
            Product p2 = new Product { Id = 1, Name = "K10C150", Price = 101M, category = "男女通用衬衫" };

            Console.WriteLine(p1.Equals(p2));

            Console.ReadKey();
        }
    }
}
